public class Student {
    private final String name;
    private final int preferredQuantity;
    private final PaperType preferredType;

    public Student(String name, int preferredQuantity, PaperType preferredType) {
        if (name == null || name.isEmpty()) {
            throw new IllegalArgumentException("学生姓名不能为空");
        }
        if (preferredQuantity < 0) {
            throw new IllegalArgumentException("希望选择的论文数量不能为负数");
        }
        this.name = name;
        this.preferredQuantity = preferredQuantity;
        this.preferredType = preferredType;
    }

    public String getName() {
        return name;
    }

    public int getPreferredQuantity() {
        return preferredQuantity;
    }

    public PaperType getPreferredPaperType() {
        return preferredType;
    }
}